import request from '@/utils/request'

// 查询拨款列表
export function listAppropriation(query) {
  return request({
    url: '/AppropriationMain/appropriation/list',
    method: 'get',
    params: query
  })
}

// 查询拨款详细
export function getAppropriation(aid) {
  return request({
    url: '/AppropriationMain/appropriation/' + aid,
    method: 'get'
  })
}

// 新增拨款
export function addAppropriation(data) {
  return request({
    url: '/AppropriationMain/appropriation',
    method: 'post',
    data: data
  })
}

// 修改拨款
export function updateAppropriation(data) {
  return request({
    url: '/AppropriationMain/appropriation',
    method: 'put',
    data: data
  })
}

// 删除拨款
export function delAppropriation(aid) {
  return request({
    url: '/AppropriationMain/appropriation/' + aid,
    method: 'delete'
  })
}
